//
//  CycleAlertManager.h
//  ProjectAlertView
//
//  Created by zl on 2017/11/10.
//  Copyright © 2017年 zl. All rights reserved.
//  管理视图的弹出

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CycleAlertPresentationController.h"
typedef NS_ENUM(NSInteger,CycleAlertViewDirectionType){
    CycleAlertViewDirectionTypeBottom = 1,
    CycleAlertViewDirectionTypeCenter = 2
};
@interface CycleAlertManager : NSObject<UIViewControllerAnimatedTransitioning,UIViewControllerTransitioningDelegate>

/// 设置弹出视图的尺寸
@property (nonatomic) CGRect presentedFrame;

/// 弹出的方向  (默认CycleAlertViewDirectionTypeCenter)
@property (nonatomic,assign) CycleAlertViewDirectionType AlertDirection;

/// 是否隐藏背景(默认不隐藏)
@property (nonatomic , assign) BOOL hideCoverView;

/// 背景View透明度（默认0.4）
@property (nonatomic , assign) CGFloat coverViewAlpha;

/// 背景View背景色
@property (nonatomic) UIColor *coverViewBgColor;

/// coverView背景视图
@property (nonatomic , strong) UIView   *coverView;

/// 弹出的UIPresentationController
@property (nonatomic, assign) CycleAlertPresentationController *presentationViewController;

/// 背景灰色是否可以点击,默认 YES
@property (nonatomic, assign) BOOL canClickBgView;

/// 消失时间
@property (nonatomic, assign) CGFloat  dismissTime;

/// 设置弹出视图圆角
@property (nonatomic , assign) double cornerRadius;

///初始化管理者
+(instancetype)sharedInstance;

///清理onceToke
+ (void)removeOnceToken;

/// 打印
+ (void)LogOnceToken;

///给弹出视图某个方向的角切圆角
- (void)cycle_cornerByRoundingCorners:(UIRectCorner)corners cornerRadius:(CGFloat)cornerRadius;





@end
